-- GENERATED SPELL FOR [Irradiated Pillager] --


function spell0_6329(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_6329', 560, 1)
end

function spell1_6329(pUnit, Event) --@Radiation,Self--
pUnit:FullCastSpellOnTarget(9798,pUnit)
pUnit:RegisterEvent('Sorts_6329', 0, 1)
end

function spell2_6329(pUnit, Event) --@Radiation Bolt,n/a--
pUnit:FullCastSpellOnTarget(9771,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6329', 3000, 1)
end

function Sorts_6329(pUnit, Event)
local choix_sorts_6329 = math.random(0, 2)
if choix_sorts_6329 == 0 then
pUnit:RegisterEvent('spell0_6329', 1, 1)
end
if choix_sorts_6329 == 1 then
pUnit:RegisterEvent('spell1_6329', 1, 1)
end
if choix_sorts_6329 == 2 then
pUnit:RegisterEvent('spell2_6329', 1, 1)
end
end

function mob6329_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6329', math.random(1500, 3000), 1)
end

function mob6329_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6329_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6329_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6329, 1, 'mob6329_Action')
RegisterUnitEvent(6329, 2, 'mob6329_Leave')
RegisterUnitEvent(6329, 3, 'mob6329_Kill')
RegisterUnitEvent(6329, 4, 'mob6329_Die')
